﻿using System.Windows;
using System.Windows.Controls;

namespace StockholmsStad.Windows.UI.Infrastructure.Windows
{
    /// <summary>
    /// Interaction logic for GenericModalWindow.xaml
    /// </summary>
    public partial class GenericModalWindow : Window
    {
        public GenericModalWindow()
        {
            InitializeComponent();
        }

        public FrameworkElement GenericContent
        {
            get { return content; }
            set 
            {
                content.Children.Clear();
                content.Children.Add(value);

                this.Width = value.Width + 10;
                this.Height = value.Height + 45;
            }
        }
    }
}
